package sources;

import java.util.Collection;
import java.util.Iterator;

public class Secteur extends sources.EspaceTravail {

	/**
 *
 */
private Collection<Billon> billon;

/**
 * Getter of the property <tt>billon</tt>
 *
 * @return Returns the billon.
 * 
 */
public Collection<Billon> getBillon()
{
	return billon;
}
 
/**
 * Returns an iterator over the elements in this collection. 
 *
 * @return an <tt>Iterator</tt> over the elements in this collection
 * @see	java.util.Collection#iterator()
 * 
 */
public Iterator<Billon> billonIterator(){
	return billon.iterator();
}

/**
 * Returns <tt>true</tt> if this collection contains no elements.
 *
 * @return <tt>true</tt> if this collection contains no elements
 * @see	java.util.Collection#isEmpty()
 *
 */
public boolean isBillonEmpty(){
	return billon.isEmpty();
}

/**
 * Returns <tt>true</tt> if this collection contains the specified element. 
 *
 * @param element whose presence in this collection is to be tested.
 * @see	java.util.Collection#contains(Object)
 *
 */
public boolean containsBillon(Billon billon){
	return this.billon.contains(billon);
}

/**
 * Returns <tt>true</tt> if this collection contains all of the elements
 * in the specified collection.
 *
 * @param elements collection to be checked for containment in this collection.
 * @see	java.util.Collection#containsAll(Collection)
 *
 */
public boolean containsAllBillon(Collection<Billon> billon){
	return this.billon.containsAll(billon);
}

/**
 * Returns the number of elements in this collection.
 *
 * @return the number of elements in this collection
 * @see	java.util.Collection#size()
 *
 */
public int billonSize(){
	return billon.size();
}

/**
 * Returns all elements of this collection in an array.
 *
 * @return an array containing all of the elements in this collection
 * @see	java.util.Collection#toArray()
 *
 */
public Billon[] billonToArray(){
	return billon.toArray(new Billon[billon.size()]);
}


/**
 * Ensures that this collection contains the specified element (optional
 * operation). 
 *
 * @param element whose presence in this collection is to be ensured.
 * @see	java.util.Collection#add(Object)
 *
 */
public boolean addBillon(Billon billon){
	return this.billon.add(billon);
}

/**
 * Setter of the property <tt>billon</tt>
 *
 * @param billon the billon to set.
 *
 */
public void setBillon(Collection<Billon> billon){
	this.billon = billon;
}

/**
 * Removes a single instance of the specified element from this
 * collection, if it is present (optional operation).
 *
 * @param element to be removed from this collection, if present.
 * @see	java.util.Collection#add(Object)
 *
 */
public boolean removeBillon(Billon billon){
	return this.billon.remove(billon);
}

/**
 * Removes all of the elements from this collection (optional operation).
 *
 * @see	java.util.Collection#clear()
 *
 */
public void clearBillon(){
	this.billon.clear();
}

/*
 * (non-javadoc)
 */
private Serre serre = null;
 
/**
 * Getter of the property <tt>serre</tt>
 *
 * @return Returns the serre.
 * 
 */
public Serre getSerre()
{
	return serre;
}

/**
 * Setter of the property <tt>serre</tt>
 *
 * @param serre The serre to set.
 *
 */
public void setSerre(Serre serre ){
	this.serre = serre;
}

}

///**
// * Setter of the property <tt>billon</tt>
// *
// * @param billon The billon to set.
// *
// */
//public void setBillon(Billon billon ){
//	this.billon = billon;
//}
///**
// * Getter of the property <tt>billon</tt>
// *
// * @return Returns the billon.
// * 
// */
//public Billon getBillon()
//{
//	return billon;
//}